//go:build dev
// +build dev

package config

import (
	"time"

	"bestcore/common/logger"
	"bestcore/common/oss"
	"bestcore/common/postgresql"
	"bestcore/common/redis"
	"bestcore/config"
)

var GlobalConfig = &config.Config{
	Env:  config.ENV_DEV,
	Port: 9000,
}

var RedisConfig = &redis.Config{
	Address:  "118.178.186.229:7001",
	Password: "game123",
	Db:       1,
}

var PostgresqlConfig = &postgresql.Config{
	// Host:     "rm-53r1aahw.pg.rds.aliyuncs.com",
	// Port:     5432,
	// User:     "ezhimao",
	// Password: "20191104!ezhimao#",
	// DbName:   "zhyDev",
	Host:     "36.26.82.102",
	Port:     5432,
	User:     "root",
	Password: "2@C78D%b022",
	DbName:   "zhy",
}

var LoggerConfig = &logger.Config{
	Name:          "dev",
	RotationCount: 0,
	MaxAge:        time.Hour * 24 * 90, // 90天清空
	RotationTime:  time.Hour * 12,      // 12小时一份
}

var OSSConfig = &oss.Config{
	Endpoint: "oss-cn-hangzhou.aliyuncs.com",
	Key:      "LTAI4FhhZfbaRuDBpgrWw1iz",
	Secret:   "WOZ60gJoE10JShQRiQS8VcS7fZRCYT",
}
